histogram relative frequency

38

# assuming that mydata is an numpy array
 ax.hist(mydata, weights=np.zeros_like(mydata) + 1. / mydata.size)

Comments

Submit
0 Comments